<?php

function createLink($datos){
	$sl=construct_insert_fields($datos);
	
	$query="INSERT INTO link $sl";
	logg($query);
	
	$r=mysql_query($query);
	return $r;
}
function getLink_by_screen_id($id){
	$sl="SELECT L.*, W.name  FROM `link` L , `wireframes` W WHERE (L.reference=W.id) AND L.screen_id=$id ORDER BY L.id ASC";
	$r=mysql_query($sl);
	return $r;
}

?>